package com
{
	import com.controllers.StartUpCommand;
	
	import org.puremvc.as3.interfaces.IFacade;
	import org.puremvc.as3.patterns.facade.Facade;
	/**
	 * 程序主facade 
	 * @author shishujun
	 * 
	 */	
	public class AppFacade extends Facade implements IFacade
	{
		private var instance : AppFacade;
		
		public function AppFacade()
		{
			
		}
		
		public static function Instance() : AppFacade
		{
			if(instance == null)instance = new AppFacade;
			return instance as AppFacade;
		}
		
		protected override function initializeController():void
		{
			super.initializeController();
			
			registerCommand(AppConfing.StartUp, StartUpCommand);
		}
		
		public function StartUp(app : UIExportMain) : void
		{
			sendNotification(AppConfing.StartUp,app);
		}
	}
}